package com.ebupt.migu.fineoperationmedia.entity.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * @author liuyangyang@e-byte.com
 * @description: TODO
 * @date 2024/4/18 14:09
 */
@Data
public class ResDataBean {
    /**
     * 配置ID
     */
    private String id;
    /**
     * 配置名称
     */
    private String name;
    /**
     * 模块：1- 侧边栏内容分区；2- 侧边栏Banner； 3- 金刚区；
     */
    private Integer module;
    /**
     * 侧边栏
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<ResBlockBean> blocks;
    /**
     * Banner
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<ResBannerBean> banners;
    /**
     * 金刚区
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<ResKingBean> kings;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":\"").append(id).append('\"');
        sb.append(",\"name\":\"").append(name).append('\"');
        sb.append(",\"module\":").append(module);
        sb.append(",\"blocks\":").append(blocks);
        sb.append(",\"banners\":").append(banners);
        sb.append(",\"kings\":").append(kings);
        sb.append('}');
        return sb.toString();
    }
}
